import { StoreKey } from '@/config/constants'
import { useStorage } from '@vueuse/core'

// 当前用户信息
export function useUserInfo() {
  const user = useStorage(`${StoreKey}-user`, null)
  return JSON.parse(user?.value || '{}')
}
